//index.js
const app = getApp()
Page({
  data: {
    uid:''
  },
  onLoad:function(){
    //wx.setStorageSync('uid',1)
    if(!wx.getStorageSync('uid')){
      wx.redirectTo({
        url: '/pages/login/login',
      })
    }
    this.setData({
      uid:wx.getStorageSync('uid')
    })
  },
  gostock:function(){
    wx.navigateTo({
      url: '/pages/stock/index'
    })
  },
  goplace:function(){
    wx.navigateTo({
      url: '/pages/place/index/index'
    })
  },
  gocate:function(){
    wx.navigateTo({
      url: '/pages/cate/index/index'
    })
  },
  gofixed:function(){
    wx.navigateTo({
      url: '/pages/fixed/index/index'
    })
  },
  gocons:function(){
    wx.navigateTo({
      url: '/pages/cons/index/index'
    })
  },
  collect:function(){
    wx.navigateTo({
      url: '/pages/cons/collect/collect'
    })
  },
})
